package com.base.pig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WZzjg对象", description="组织机构表")
public class WZzjg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门标识")
    @TableId(value = "ID", type = IdType.AUTO)
    private BigDecimal id;

    @ApiModelProperty(value = "部门代码")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "部门简称")
    @TableField("SHORTNAME")
    private String shortname;

    @ApiModelProperty(value = "部门名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "部门描述")
    @TableField("DESCRIBE1")
    private String describe1;

    @ApiModelProperty(value = "创建时间")
    @TableField("TIME")
    private Date time;

    @ApiModelProperty(value = "办公电话")
    @TableField("TEL")
    private String tel;

    @ApiModelProperty(value = "地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "邮编")
    @TableField("EMAIL")
    private String email;

    @ApiModelProperty(value = "上级部门")
    @TableField("LASTDEPART")
    private String lastdepart;

    @ApiModelProperty(value = "所属区域")
    @TableField("ZONE")
    private String zone;

    @ApiModelProperty(value = "上级部门标识")
    @TableField("LASTID")
    private String lastid;


}
